import http from '@/http/interceptor'

// 点赞
let BASE_CONTENT = '/like'

/** 添加点赞 **/
export function add(data = { type: '', id: '' }) {
	return http({
		url: BASE_CONTENT + '/' + data.type,
		method: 'post',
		data: http.jsonData({
			'id': data.id
		})
	})
}